package com.rest.model;

import java.io.Serializable;

import org.springframework.stereotype.Component;

@Component
public class CalculatorResponse implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4813180535261085005L;

	public CalculatorResponse() {
	}

	private double value;
	private String error;
	
	/**
	 * @return the value
	 */
	public double getValue() {
		return value;
	}
	/**
	 * @param value the value to set
	 */
	public void setValue(double value) {
		this.value = value;
	}

	/**
	 * @return the error
	 */
	public String getError() {
		return error;
	}

	/**
	 * @param error the error to set
	 */
	public void setError(String error) {
		this.error = error;
	}

}
